package com.lincoln.redis.server.service;

import com.lincoln.redis.server.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户数据操作
 *
 * @author lincoln
 */
@Service
public interface UserService extends BaseService<User> {

    /**
     * 通过name查询
     *
     * @param username
     * @return
     */
    User findByName(String username);

    List<User> findAll(String username);

}
